﻿using System.Data;
using UFSoft.UBF.Util.DataAccess;

namespace dz.inner.jky.api.service
{
    internal class BaseService
    {
        protected LogUtils logUtils = new LogUtils();
        protected InnerUtil util = new InnerUtil();        
        protected string entCode, userCode,org;
        protected void GetApiParm()
        {
            IDataReader dataReader;

            string sql = $@"select EntCode,UserCode,Org from dz_api_set";

            DataAccessor.RunSQL(DataAccessor.GetConn(), sql, null, out dataReader);

            while (dataReader.Read())
            {
                entCode = dataReader.GetString(0);
                userCode = dataReader.GetString(1);
                org = dataReader.GetString(2);
            }
        }

    }

    
}
